<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<h2>jinja2语法</h2>
<p>{{ name }}</p>

{% for n in name %}
	<p>{{ loop.index }} = {{ n }}</p>
{% endfor %}

{# jinja2中可以使用函数 #}
{% for i in range(1, 4) %}
	<div>{{ i }}</div>
{% endfor %}


<p>{{ hobby[1] }}</p>
<p>{{ address['city'] }}</p>
</body>
</html>